package demo.jaxrs.server;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@Api(value="/nihao")
@Path("/nihao")
public class CustomerService {
	@GET
	public String upload() {
		return "hello";
	}
	@GET
	@Path("/obj")
	@Produces("application/json")
	@ApiOperation(value = "获取个人基本信息",notes="最简单地，返回人的姓名。")
	public Person uploadObj() {
		Person person=new Person();
		person.setName("wang wu");
		return person;
	}
}
